import {get,post} from '../utils/request'

// 项目中的接口都放到该文件中进行管理

// 获取首页的数据
export const getHomeData = (params = {}) => {
  return get("/page/detail",params)
}

// 获取分类的列表
export const getCategoryData = (params) => {
  return get("/category/list",params)
}

// 快捷登录
export const loginMpWx = (params) => {
  return post("/passport/loginMpWx", params)
}

//注册
export const login = (params) => {
  return post("/passport/login",params)
}

//获取用户信息
export const getUserInfo = (params) => {
  return get("/user/info", params)
}
// /order/list
export const getMyOrderList = (params)=>{
  return get('/order/list', params)
}
// 确认收货 /order/receipt
export const orderReceipt = (params) =>{
  return post('/order/receipt', params)
}